﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Interface
{
    public interface IAdmin
    {
        //后台登录
        T AdminLogin<T>(string name, string pwd);

        //客户管理
        List<T> UsersList<T>();

        /// <summary>
        /// 员工信息
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        List<T> Employ<T>();

        /// <summary>
        /// 显示角色
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        List<T> role<T>();
        /// <summary>
        /// 添加员工信息
        /// </summary>
        /// <param name="emp"></param>
        /// <returns></returns>
        bool AddEmploy<T>(Employee emp);
        /// <summary>
        /// 修改状态
        /// </summary>
        /// <param name="emp"></param>
        /// <returns></returns>
        int UpdateEmp<T>(int state , int id);
    }
}
